package com.zzh.haodai.myseekbar;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.zzh.haodai.myseekbar.view.SeekBarView;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final TextView textView = (TextView)findViewById(R.id.wen_ben);
        ((SeekBarView)findViewById(R.id.my_seek)).setOnSeekBarListener(new SeekBarView.OnSeekBarListener() {
            @Override
            public void valueX(int vlaueX) {
                Log.i(TAG,">>>>>>>value>>>>" + vlaueX);
                textView.setText("" + vlaueX);

            }
        });
    }

}
